package com.huawei.appmarket.service.settings.card;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appmarket.service.settings.view.activity.StopServiceActivity;
import o.cgz;
import o.der.d;
import o.der.f;

public class SettingStopServiceCard extends BaseSettingCard {
    private OnClickListener ˊ = new OnClickListener(this) {
        final /* synthetic */ SettingStopServiceCard ˎ;

        {
            this.ˎ = r1;
        }

        public void onClick(View view) {
            Intent intent = new Intent();
            intent.setClass(this.ˎ.ʼॱ, StopServiceActivity.class);
            this.ˎ.ʼॱ.startActivity(intent);
        }
    };

    public SettingStopServiceCard(Context context) {
        super(context);
        this.ᐝ = context;
    }

    public cgz ˏ(View view) {
        super.ˏ(view);
        ʽ(view);
        this.ˊˋ.setOnClickListener(this.ˊ);
        return this;
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        ((TextView) this.ˊˋ.findViewById(d.ʽʼ)).setText(f.ˌᐝ);
        this.ˊˋ.setOnClickListener(this.ˊ);
    }
}
